package com.neusoft.nep.grid.caluate;



public class CaluatePM25AQI {
    public static  int caluatePM25AQI(int PM25) {
        int PM25AQI = 0;
        if (PM25 >= 0 && PM25 <= 35) {
            PM25AQI=1;
        }
        else if (PM25 >= 36 && PM25 <= 75) {
            PM25AQI=2;
        }else if (PM25>= 76 && PM25<= 115) {
            PM25AQI=3;
        }else if (PM25 >= 116 && PM25 <= 150) {
            PM25AQI=4;
        }else if( PM25 >= 151&& PM25 <= 250) {
            PM25AQI=5;
        }else if (PM25>= 251&& PM25 <= 500 ) {
            PM25AQI=6;
        }
        return PM25AQI;
    }

}

